home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Disk / scsiformatterinstaller1. Folder / Configuring for ST277N < prev    next >
Encoding:
Text File  |  1989-04-05  |  8.8 KB  |  241 lines  |  [ttro/ttxt]

  1.  
  2. Seagate Drives and SF&I
  3.  
  4. In response to a query of mine regarding information on interfacing the
  5. Seagate ST277N drive to the Mac using the shareware version of Ephraim
  6. Vishniac's SCSI Formatter and Installer (SF&I) program, several people
  7. expressed a desire for this information to be posted to the net. I am
  8. posting this in response to these requests.
  9.  
  10. Disclaimer: The following information is based on my experience (read:
  11. "n of one") with the ST277N and SF&I version 1.0, obtained from sumex.
  12. The drive is installed on a MacPlus with version 2 ROM, and has also
  13. been briefly used with a MacII. Information on the ST277N was obtained
  14. from the "Seagate SCSI Interface Manual", 36021-001, Revision B,
  15. of November 20, 1986. That manual is currently in the process of being
  16. reprinted, and I presume, revised. Although I have not used SF&I with
  17. other Seagate SCSI drives, they should behave similarly to the ST277N,
  18. the only exception being the block size of the drive.
  19.  
  20. SF&I has apparantly been replaced by a commercial version. I have not
  21. used or seen this product, and the comments here apply only to the
  22. above shareware version. Anyone planning to interface their own disk
  23. to a Mac should consider this program, as well as other commercial
  24. SCSI device driver programs. In addition, recent comments from another
  25. net indicate that the Apple HD setup program can also be used with
  26. the ST277N after modification. I have not tried this and cannot
  27. comment on it. In addition, there were articles in "Computer Shopper"
  28. on this subject in early Fall of 1988. I am NOT responsible for
  29. your drive, your computer, or your software.
  30.  
  31. Basics: See the SF&I documentation for full details. SF&I is a
  32. formatter/installer program based on the generic Apple SCSI driver
  33. distributed in the Software Supplement. User-alterable resources contain
  34. information for specific SCSI commands used by the program to set the drive
  35. up correctly - these resources describing these commands are of type "SCMD"
  36. and are identified by NAME, not by number. Data to be sent along with the
  37. command are described by a resource of type "HEXA","DDM", or "DPM"
  38. identified by number. ResEdit templates for these resources are included
  39. with SF&I, along with two versions of the driver itself, which is also
  40. installed as a resource.
  41.  
  42. The following is a desciption of the SCMD and HEXA resources which
  43. I used. 
  44.  
  45. "MODE" SCMD. This is for the Mode Select command, which is particularly
  46. important for the Seagate drive, to turn off the "Unit Attention" feature.
  47. This feature, while standard for current SCSI drives, causes problems for
  48. BOTH the MacPlus and MacII: the MacPlus (with old ROMs) will never find a
  49. drive that goes into Unit Attention on reset, while the MacII will find it,
  50. but will preferentially boot off another drive which does not have this
  51. feature, regardless of SCSI device number.
  52.  
  53.    SCMD Name: "Mode"
  54.    SCMD ID: 134 (number as you wish)
  55.    SCMD Content:
  56.       Xfer Size: -16 (16 bytes of data TO the drive)
  57.       Xfer Incr: 1
  58.       Data Res Type: HEXA
  59.       Data Res #: 129
  60.       Ticks: 600
  61.       Command Length: 6 (bytes)
  62.       Command sequence:
  63.          $15 (opcode)
  64.          $00 (LUN/reserved)
  65.          $00 (reserved)
  66.          $00 (reserved)
  67.          $10 (parameter list length = 16 bytes of data)
  68.          $00 (reserved/flag/link)
  69.  
  70.    HEXA Name: "Mode Data" (call it what you wish)
  71.    HEXA ID: 129 (must be same as you specified in the SCMD)
  72.    HEXA Content: (16 bytes)
  73.       $00 (reserved)
  74.       $00 (medium type)
  75.       $00 (reserved)
  76.       $08 (block descriptor length)
  77.       $00 $00 $00 $00 $00 $00 $00 $00 (null block descriptor)
  78.       $00 (page descriptor code)
  79.       $02 (page length of operating parameters)
  80.       $10 (operating parameter - bit 4 turns OFF Unit Attention)
  81.       $00 (device type qualifier)
  82.  
  83. "SENSE" SCMD. This is the "Request Sense" command. The only real variation
  84. here is the number of sense bytes sent by the drive. The maximum number of
  85. sense bytes returned is 22 for extended sense, or 27 with usage counters
  86. operational, but the ST277N works fine if you specify 0, which defaults to
  87. a non-extended sense byte length of 4.
  88.  
  89.    SCMD Name: "Sense"
  90.    SCMD ID: 128 (number as you wish)
  91.    SCMD Content:
  92.       Xfer Size: 4 (we receive the 4 nonextended sense bytes)
  93.       Xfer Incr: 1
  94.       Data Res Type: (there is none)
  95.       Data Res #: 0 (there is none)
  96.       Ticks: 60
  97.       Command Length: 6 (bytes)
  98.       Command sequence:
  99.          $03 (opcode)
  100.          $00 (LUN/reserved)
  101.          $00 (reserved)
  102.          $00 (reserved)
  103.          $00 (allocation length - we specify 0 for nonextended sense)
  104.          $00 (reserved/flag/link)
  105.  
  106. "FORMAT" SCMD. This is the formatting command. The options here are the
  107. defect list format and the interleave. I used the same defect list format
  108. as the supplied SCMD, which specifies to use the manufacturer's defect list
  109. only, with no additions supplied. You may want to vary this, but you should
  110. consult the Seagate manual for details. For interleave, 3 appears appropriate
  111. for a MacPlus, with 2 for a MacII. You can experiment with the SCSI evaluator
  112. to find what is best for your drive.
  113.  
  114.    SCMD Name: "Format"
  115.    SCMD ID: 129 (number as you wish)
  116.    SCMD Content:
  117.       Xfer Size: -4 (4 bytes of format data TO the drive)
  118.       Xfer Incr: 1
  119.       Data Res Type: HEXA
  120.       Data Res #: 128
  121.       Ticks: 18000
  122.       Command Length: 6 (bytes)
  123.       Command sequence:
  124.          $04 (opcode)
  125.          $18 (FMT DATA = 1, Defect List Format = 100b)
  126.          $00 (reserved)
  127.          $00 (interleave MSB)
  128.          $03 (interleave LSB) (2 for MacII)
  129.          $00 (reserved/flag/link)
  130.  
  131.    HEXA Name: "Format Data" (call it what you wish)
  132.    HEXA ID: 128 (must be same as you specified in the SCMD)
  133.    HEXA Content: (16 bytes)
  134.       $00 (reserved)
  135.       $00 (FOV/RSRV/DCRT/STPF/reserved)
  136.       $00 (defect list length MSB)
  137.       $00 (defect list length LSB)
  138.  
  139. "Driver" SCMD. This command writes the driver to the drive. It is
  140. essentially the same as that supplied with SF&I. Both drivers appear to work
  141. with the ST277N, but I chose the "Vanilla Driver". The SCMD description of
  142. each is the same - to change drivers, simply swap the SDRV resource.
  143.  
  144.    SCMD Name: "Driver"
  145.    SCMD ID: 133 (number as you wish)
  146.    SCMD Content:
  147.       Xfer Size: -2048 (takes up 4 blocks, transferred TO the drive)
  148.       Xfer Incr: 512
  149.       Data Res Type: SDRV
  150.       Data Res #: 128
  151.       Ticks: 300
  152.       Command Length: 6 (bytes)
  153.       Command sequence:
  154.          $0A (opcode for write)
  155.          $00 (LUN/address MSB)
  156.          $00 (address)
  157.          $02 (address LSB) (driver begins on block #2)
  158.          $04 (transfer length) (4 blocks)
  159.          $00 (reserved/flag/link)
  160.  
  161.    SDRV Name: "Format Data" (call it what you wish)
  162.    SDRV ID: 128 (must be same as you specified in the SCMD)
  163.    SDRV Content: (insert either driver)
  164.  
  165. "DDM" SCMD. This is the command to write the device descriptor map to
  166. the drive. It is essentially the same as that supplied. The actuall DDM
  167. must be modified for your drive size.
  168.  
  169.    SCMD Name: "DDM"
  170.    SCMD ID: 131 (number as you wish)
  171.    SCMD Content:
  172.       Xfer Size: -512 (takes up 1 blocks, transferred TO the drive)
  173.       Xfer Incr: 512
  174.       Data Res Type: DDM
  175.       Data Res #: 128
  176.       Ticks: 300
  177.       Command Length: 6 (bytes)
  178.       Command sequence:
  179.          $0A (opcode) (this is a write)
  180.          $00 (LUN/address MSB)
  181.          $00 (address)
  182.          $00 (address LSB) (DDM is block 0)
  183.          $01 (transfer length) (1 blocks)
  184.          $00 (reserved/flag/link)
  185.  
  186.    DDM Name: "Format Data" (call it what you wish)
  187.    DDM ID: 128 (must be same as you specified in the SCMD)
  188.    DDM Content:
  189.       DDM Sig: $4552
  190.       Block Size: 512
  191.       Drive Size: 126790 (blocks) (for ST277N - see manual for other drives)
  192.       Dev Type: $0000
  193.       Dev ID: $0000
  194.       Data Start: 0
  195.       Driver Count: 1
  196.       Driver Block: 2
  197.       Driver Size: 3
  198.       Driver Type: $0001
  199.  
  200. "DPM" SCMD. This command writes the device partition map to the drive.
  201. It is modified for drive size only.
  202.  
  203.    SCMD Name: "DPM"
  204.    SCMD ID: 132 (number as you wish)
  205.    SCMD Content:
  206.       Xfer Size: -512 (takes up 1 blocks, transferred TO the drive)
  207.       Xfer Incr: 512
  208.       Data Res Type: DPM
  209.       Data Res #: 128
  210.       Ticks: 300
  211.       Command Length: 6 (bytes)
  212.       Command sequence:
  213.          $0A (opcode) (this is a write)
  214.          $00 (LUN/address MSB)
  215.          $00 (address)
  216.          $01 (address LSB) (DPM is block 1)
  217.          $01 (transfer length) (1 blocks)
  218.          $00 (reserved/flag/link)
  219.  
  220.    DPM Name: "Format Data" (call it what you wish)
  221.    DPM ID: 128 (must be same as you specified in the SCMD)
  222.    DPM Content:
  223.       DPM Sig: $5453
  224.       Start Block: 8 (8 reserved blocks for DPM, DDM, driver)
  225.       Length: 126782 (drive size - 8 reserved blocks)
  226.       Signature: TFS1
  227.  
  228. "Verify" SCMD. Not needed and not used.
  229.  
  230.   Ken Mitchum KY3B
  231.   Decision Systems Laboratories
  232.   University of Pittsburgh
  233.   km@cadre.dsl.pittsburgh.edu
  234.  
  235.       
  236.          
  237.       
  238.      
  239.  
  240.        
  241.